﻿using System;
using System.Collections.Generic;
using System.Text;

namespace KingOfCSharp.iHunter.Plugins
{
    /// <summary>
    /// The architecure that the plugin runs on
    /// </summary>
    public enum Architecture
    {
        /// <summary>
        /// The plugin is pure IL code runs on any architecure
        /// </summary>
        Generic = 0,
        /// <summary>
        /// The plugin runs on X86 processor
        /// </summary>
        X86,
        /// <summary>
        /// The plugin runs on X86-64 processor
        /// </summary>
        X64
    }

    /// <summary>
    /// Define the archetecure that the plugin runs on
    /// </summary>
    public class ArchitectureAttribute : Attribute
    {
        private Architecture architecture;

        /// <summary>
        /// Gets the compatible architecture.
        /// </summary>
        /// <value>The architecture.</value>
        public Architecture Architecture
        {
            get { return architecture; }
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="ArchitectureAttribute"/> class.
        /// </summary>
        /// <param name="architecture">The architecture.</param>
        public ArchitectureAttribute(Architecture architecture)
        {
            this.architecture = architecture;
        }
    }
}
